<template>
    <div class="titleWrapper">
        <div class="title_text">
            {{ compTitle }}
            <img src="@/assets/image/title_deco.png" />
        </div>
        <slot name="extra"></slot>
    </div>
</template>

<script setup lang="ts">
const props = defineProps({
    title: { 
        type: String,
        default: '',
    },
});

const compTitle = computed(() => props.title);

</script>

<style lang="less" scoped>
.titleWrapper {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(3,50,106, .6);
    .title_text {
        color: #fff;
        font-size: 16px;
        img { margin-left: 10px; }
    }
}
</style>